form method = 'get'
  .panel.panel-default
    .panel-heading
      = link_to "新增" , new_payment_method_path, class: "btn btn-primary btn-xs", :remote=>true

    .panel-body
		.table-responsive
	      table.table.table-bordered.table-hover
	        tr
	          th 编号
	          th 名称
	          th 操作
	          
	        -@payment_methods.each do |p|
	          tr
	            td = p.id
	            td = p.name
	            td
	                = link_to "修改", edit_payment_method_path(:id => p.id), class: "btn btn-success btn-xs", style: "margin-right:10px;", :remote=>true
	                = link_to "删除" , payment_method_path(:id => p.id), :method => "DELETE", data: {confirm: '一旦删除,将无法恢复,是否删除?'}, class: "btn btn-danger btn-xs"
